#{extends 'main.html' /}
#{set title:'Search Results' /}

<div id="main">
	<br/> <a class="buttonS purple" href="@{AdvancedSearch.searchHome()}">Back to advanced search </a><br/>
	<div id="search-results">
	<h1>Search Results</h1>
	#{if entity2}
	Found ${entity2.size()} item${entity2.pluralize()} matching
	'${search}'
	<ul>
	#{list items:entity2, as:'Entities'}
	<li><a href="@{SearchForEntities.showEntities(Entities.id)}">${Entities.name}</a>
	</li>
	#{/list}
	</ul>
	#{/if}
	#{else}
	Sorry! We did not find any results matching '${search}'
	#{/else}
	</div>
</div>